home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95c.txt
/
000077_icon-group-sender _Mon Nov 6 19:56:55 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1996-01-03
|
917b
Received: by cheltenham.cs.arizona.edu; Tue, 7 Nov 1995 06:43:27 MST
To: icon-group@cs.arizona.edu
Date: 6 Nov 1995 19:56:55 GMT
From: worf!davidf@agate.berkeley.edu (David J. Fiander)
Message-Id: <47lpa7$5gi@ia.mks.com>
Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA
Sender: icon-group-request@cs.arizona.edu
Subject: An odd bit of code
Errors-To: icon-group-errors@cs.arizona.edu
This code is from the Icon programming library program "c2icn":
while line := trim(read(),' \t') do line ? {
line := comment := ""
They're scanning C source here. What I find interesting is the
intialisation of "line" on the second line. Since it's in the
string scanning environment, I would guess that &subject points
at the input line, so "line" can be set to "" to start building
the output.
I'm just wondering if this code is guaranteed to work, or if it's
just chance?